MESCIUS.ActiveReports.Core.Rendering Assembly / GrapeCity.ActiveReports.Rendering.Tools Namespace / EnumerableExtension Class / ForceInBackground Method / ForceInBackground<T>(IEnumerable<T>,CancellationToken,Int32) Method
The type of elements in the sequence.
The source sequence.
A token to cancel enumeration.
The maximum buffer size. If zero, the size is unlimited.

In This Topic
ForceInBackground<T>(IEnumerable<T>,CancellationToken,Int32) Method
In This Topic
Forces evaluation of the given IEnumerable in a separate thread and returns a new IEnumerable to be enumerated in the current thread.
Syntax
'Declaration
 
Public Overloads Shared Function ForceInBackground(Of T)( _
   ByVal src As IEnumerable(Of T), _
   ByVal cancellationToken As CancellationToken, _
   ByVal maxBufferSize As Integer _
) As IEnumerable(Of T)
 

Parameters

src
The source sequence.
cancellationToken
A token to cancel enumeration.
maxBufferSize
The maximum buffer size. If zero, the size is unlimited.

Type Parameters

T
The type of elements in the sequence.

Return Value

A sequence that is evaluated in a background thread.
See Also